-- GENERATED SPELL FOR [Defender of the Light] --


function spell0_29174(pUnit, Event) --@Heroic Leap,n/a--
pUnit:FullCastSpellOnTarget(53625,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29174', 2349, 1)
end

function spell1_29174(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(29427,pUnit)
pUnit:RegisterEvent('Sorts_29174', 2500, 1)
end

function spell2_29174(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(53643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29174', 607, 1)
end

function spell3_29174(pUnit, Event) --@Holy Wrath,n/a--
pUnit:FullCastSpellOnTarget(53638,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29174', 585, 1)
end

function spell4_29174(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(53629,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29174', 595, 1)
end

function Sorts_29174(pUnit, Event)
local choix_sorts_29174 = math.random(0, 4)
if choix_sorts_29174 == 0 then
pUnit:RegisterEvent('spell0_29174', 1, 1)
end
if choix_sorts_29174 == 1 then
pUnit:RegisterEvent('spell1_29174', 1, 1)
end
if choix_sorts_29174 == 2 then
pUnit:RegisterEvent('spell2_29174', 1, 1)
end
if choix_sorts_29174 == 3 then
pUnit:RegisterEvent('spell3_29174', 1, 1)
end
if choix_sorts_29174 == 4 then
pUnit:RegisterEvent('spell4_29174', 1, 1)
end
end

function mob29174_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29174', math.random(1500, 3000), 1)
end

function mob29174_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29174_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29174_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29174, 1, 'mob29174_Action')
RegisterUnitEvent(29174, 2, 'mob29174_Leave')
RegisterUnitEvent(29174, 3, 'mob29174_Kill')
RegisterUnitEvent(29174, 4, 'mob29174_Die')
